﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dbPoll_Application.ViewModels.DetailsViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript" src="../../Scripts/EditParticipant.js"></script>
<div class="pageHeadingContainer"><h2 class="pageHeading">
    <%if (Model.poll.isGroup) {%>Members of <%=Model.group.name%><%}
      else {%>Participant's Details<%} %></h2></div>
<div id="contentContainer">
<%= Html.ActionLink("Go back to Participant List", "Participants","Poll", 
    new { pollID = Model.poll.pollID, pollName = Model.poll.name }, null)%></td></tr>
<%if (Model.poll.isGroup == false) Html.RenderPartial("IndividualDetails", Model);
  else Html.RenderPartial("GroupDetails", Model); %>
</div>

</asp:Content>
